#pragma once
#include<string>
#include<iomanip>
#include<iostream>
#include<istream>
#include<ostream>
#include<fstream>
#include<sstream>
#include<vector>
#include"Vehicle.h"
#include"Repaired.h"
#include"VehicleRegister.h"

using namespace std;

class DataBase: public VehicleRegister
{
private:
	vector<VehicleRegister> Vr;
	int r;

public:
	bool quit;
	bool Quit(){ return quit;}
	
public:
	DataBase();
	~DataBase(void);

	void RegisterObject(VehicleRegister vr);
	void AktivRegister(VehicleRegister vr);
	string SearchRegister(string g, int y);

	friend ostream & operator << (ostream &out, DataBase & op);
	friend istream & operator >>(istream &sin, DataBase &op);
};

